package com.zw.a.basic.a07.demo11_coach;

//篮球运动员
public class BasketballPlayer extends Player{
    //构造方法
    public BasketballPlayer() {
    }

    public BasketballPlayer(String name, int age) {
        super(name, age);
    }

    //重写父类的抽象方法
    @Override
    public void study() {
        System.out.println("篮球运动员学习如何运球和投篮");
    }

    @Override
    public void eat() {
        System.out.println("篮球运动员吃羊肉, 喝羊奶");
    }
}
